package com.lsq.baseadmin.modules.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author lsq
 * @since 2020-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="User对象", description="系统用户")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String loginName;

    @JsonIgnore
    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "性别：1男、0女")
    private Integer gender;

    @ApiModelProperty(value = "状态：1启用、0禁用")
    private Integer status;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "部门名称")
    private Integer departmentId;

    @ApiModelProperty(value = "岗位名称")
    private Integer positionId;

    @ApiModelProperty(value = "数据范围：1=个人，2=本部门，3=本部门及子部门，4=自定义，99=全部")
    private Integer dataScope;

    @ApiModelProperty(value = "头像地址")
    private String profilePictureUrl;

    @ApiModelProperty(value = "创建日期")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "最后修改日期")
    private LocalDateTime updatedTime;


}
